package com.ncu.cloundeoffice.controller;


import com.ncu.cloundeoffice.pojo.ResponseResult;
import com.ncu.cloundeoffice.pojo.TMenu;
import com.ncu.cloundeoffice.service.TMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/cfg")
public class TMenuController {

    @Autowired
    private TMenuService tMenuService;


    @GetMapping("/menu")
    public ResponseResult getMenuByAdminId(){
        return tMenuService.getMenuByAdminId();
    }


}
